// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   CommonController.java

package com.nervytech.tutorcruise.spring.controller;

import com.nervytech.tutorcruise.spring.security.auth.UserDetailsServiceImpl;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/pub/comn")
public class CommonController {

	@RequestMapping(value = "/about", method = RequestMethod.GET)
	public String showAboutUs(Map model) {
		return "aboutus";
	}

	@RequestMapping(value = "/contact", method = RequestMethod.GET)
	public String showContactUs(Map model) {
		if (UserDetailsServiceImpl.currentUserDetails() == null)
			return "contactus";
		else
			return "user_cotactus";
	}
}
